package com.kingyea.app.market.appauthorization.service;

import com.kingyea.app.market.appauthorization.bean.AppAuthorization;
import com.kingyea.app.market.appauthorization.bean.AppAuthorizationPo;
import com.kingyea.app.market.utils.page.PageInfo;

import java.util.List;

/**
 * @author hx
 * @version v1.0.0
 * @description AppAuthorization 接口
 * @date Created in 2018-05-02 11:34:13
 */
public interface AppAuthorizationService {

    /**
     * 通过ID查找对象
     *
     * @param id
     * @return
     */
    AppAuthorization getById(Integer id) throws Exception;

    /**
     * 列表
     *
     * @param appAuthorization
     * @return
     */
    PageInfo<AppAuthorization> list(AppAuthorization appAuthorization) throws Exception;

    /**
     * 删除
     *
     * @param id
     * @return
     */
    boolean deleteById(Integer id) throws Exception;

    /**
     * 添加
     *
     * @param appAuthorization
     * @return
     */
    boolean save(AppAuthorization appAuthorization) throws Exception;

    /**
     * 更新
     *
     * @param appAuthorization
     * @return
     */
    boolean update(AppAuthorization appAuthorization) throws Exception;

    boolean createAll(AppAuthorizationPo po) throws Exception;

    List<AppAuthorization> getbyUser(AppAuthorizationPo appAuthorization) throws Exception;
}
